package cn.com.smartdevices.bracelet.chart.util;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.AnimatorSet.Builder;
import java.util.ArrayList;
import java.util.Iterator;

/* renamed from: cn.com.smartdevices.bracelet.chart.util.q */
public class C0801q {
    private static Animator f4094a;
    private static ArrayList<Animator> f4095b;

    static {
        f4095b = new ArrayList();
    }

    private C0801q() {
    }

    public static AnimatorSet m8764a() {
        AnimatorSet animatorSet = new AnimatorSet();
        Builder play = animatorSet.play(f4094a);
        Iterator it = f4095b.iterator();
        while (it.hasNext()) {
            play.with((Animator) it.next());
        }
        C0801q.m8768b();
        return animatorSet;
    }

    public static void m8765a(Animator animator) {
        f4094a = animator;
    }

    public static void m8766a(Animator animator, long j) {
        animator.setDuration(j);
        f4094a = animator;
    }

    public static void m8767a(Animator animator, long j, long j2) {
        animator.setStartDelay(j2);
        if (j > 0) {
            animator.setDuration(j);
        }
        f4095b.add(animator);
    }

    private static void m8768b() {
        f4094a = null;
        f4095b.clear();
    }

    public static void m8769b(Animator animator) {
        f4095b.add(animator);
    }

    public static void m8770b(Animator animator, long j) {
        animator.setDuration(j);
        f4095b.add(animator);
    }
}
